package com.test;

public class PathRuleNode extends RuleNode {
	String name = null;
	public PathRuleNode(String name){
		this.name = name ;
	}
	
	@Override
	public MatchResult howMatch(JsonKey key,Class type,Object value) {
		 if(key==null){
			 return new MatchResult(this,this.action);
		 }
		 if(name.equals(key.getName())){
			 return new MatchResult(this.nextRule,this.action);		
		}else{
			return  null;
		}
	}
	
	

}
